package SwordForOffer.Problem5;

import SwordForOffer.utils.ListNode;

public class ListPrinter {
    public void printListNode(ListNode root) {
        if (root != null){
            printListNode(root.next);
            System.out.println(root.data + " ");
        }
    }
}
